package com.marisfrolg.gateway.service.impl;

import com.marisfrolg.gateway.entity.ClientPermission;
import com.marisfrolg.gateway.mapper.ClientPermissionMapper;
import com.marisfrolg.gateway.service.ClientPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lgg
 * @since 2023-01-05
 */
@Service
public class ClientPermissionServiceImpl extends ServiceImpl<ClientPermissionMapper, ClientPermission> implements ClientPermissionService {

    @Autowired
    private ClientPermissionMapper clientPermissionMapper;

    @Override
    public List<String> getPermissions(String clientId) {
        return clientPermissionMapper.getPermissions(clientId);
    }
}
